build: Do not use add_global_flags()
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 24 Jun 2019 14:00:21 +0000 (15:00 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 24 Jun 2019 14:00:21 +0000 (15:00 +0100)
It's almost always not what you want.

meson.build

index 2de01fac9c6a9530c8dda2cec1fd412f9c8855fb..716298a7d934f0a26fa5e32680d512b2ea24d901 100644 (file)
@@ -694,7 +694,7 @@ if graphene_has_sse2 or graphene_has_gcc
   message('Need aligned memory due to the use of SSE2 or GCC vector instructions')
 
   if os_win32 and cc.get_id() == 'gcc'
-    add_global_arguments(['-mstackrealign'], language: 'c')
+    add_project_arguments(['-mstackrealign'], language: 'c')
   endif
 endif